package com.itheima.day20.demo05;

import java.io.File;

public class Test04 {
    public static final String sourcePath = "D:\\day04\\A星算法";
    public static final String DES_FILE = "D:\\day04\\123456";

    public static void main(String[] args) {
        File file = new File(sourcePath);
        File[] files = file.listFiles();
        for (File f : files) {
            String s = DES_FILE + f.getPath().substring(sourcePath.length());
            System.out.println(s);
            System.out.println(f.getName());
            System.out.println(f.getPath());
            System.out.println(f.getAbsolutePath());
        }
    }
}
